package com.sdry.service.impl.lz;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sdry.mapper.lz.ProductInspectMapper;
import com.sdry.model.lz.DeviceAccount;
import com.sdry.model.lz.LzQueryCriteria;
import com.sdry.model.lz.SpinningRecord;
import com.sdry.service.lz.ProductInspectService;

/**
 * 
 * @ClassName ProductInspectServiceImpl
 * @Description 生产抽检
 * @Author lz
 * @Date 2018年12月3日 10:16:54
 * @Version 1.0
 */
@Service
@Transactional
public class ProductInspectServiceImpl implements ProductInspectService{

	@Resource
	ProductInspectMapper productInspectMapper;

	@Override
	public Long addProductInspect(SpinningRecord spinningRecord) {
		return productInspectMapper.addProductInspect(spinningRecord);
	}

	@Override
	public Long deleteProductInspectById(long id) {
		return productInspectMapper.deleteProductInspectById(id);
	}

	@Override
	public Long editProductInspectById(SpinningRecord spinningRecord) {
		return productInspectMapper.editProductInspectById(spinningRecord);
	}

	@Override
	public List<SpinningRecord> queryProductInspect(LzQueryCriteria criteria) {
		return productInspectMapper.queryProductInspect(criteria);
	}

	@Override
	public int countProductInspect(LzQueryCriteria criteria) {
		return productInspectMapper.countProductInspect(criteria);
	}
}
